package com.tbh.ioc.bean;

public class HelloWorldSon {

    private String messageSon;
    private String message;

    public String getMessageSon() {
        return messageSon;
    }

    public void setMessageSon(String messageSon) {
        this.messageSon = messageSon;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * 生命周期：初始化
     */
    public void init() {
        System.out.println("Bean is going through init.");
    }

    /**
     * 生命周期：销毁
     */
    public void destroy() {
        System.out.println("Bean will destroy now.");
    }
}
